package com.ruoyi.reservation.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预约信息对象 reservation
 * 
 * @author ruoyi
 * @date 2024-04-19
 */
@Data
@TableName("reservation")
public class Reservation implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    @TableField("user_id")
    private Long userId;

    /** 病症id */
    @Excel(name = "病症id")
    @TableField("disease_id")
    private Long diseaseId;

    /** 医生id */
    @Excel(name = "医生id")
    @TableField("staff_id")
    private Long staffId;

    /** 姓名 */
    @Excel(name = "姓名")
    @TableField("name")
    private String name;

    /** 电话 */
    @Excel(name = "电话")
    @TableField("phone")
    private String phone;

    /** 症状描述 */
    @Excel(name = "症状描述")
    @TableField("description")
    private String description;

    /** 约定日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "约定日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("appointment")
    private Date appointment;

    /** 预约状态 */
    @Excel(name = "预约状态")
    @TableField("status")
    private Long status;

    /** 创建人 */
    private Long createUser;

    /** 更新人 */
    private Long updateUser;

    /** 创建时间 */
    private Date createTime;

    /** 更新时间 */
    private Date updateTime;

    /** 请求参数 */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    private String diseaseName;

    private String staffName;

}
